package com.hqyj.javaSpringBoot.modules.account.entity;

import com.hqyj.javaSpringBoot.modules.common.entiy.AbstractEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Entity
@Table(name = "account_resource")
public class Resource extends AbstractEntity {
	
	
    @Column(unique = true)
    private String perssion;

    @Transient
    private List<Role> roles;
    

    public String getPerssion() {
        return perssion;
    }

    public void setPerssion(String perssion) {
        this.perssion = perssion;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
